Skip to content

gh-135410: Use a critical section around StringIO.__next__#135412

Merged
kumaraditya303 merged 3 commits intopython:mainfrom
ZeroIntensity:fix-stringio
Jun 12, 2025
Merged

gh-135410: Use a critical section around StringIO.__next__#135412
kumaraditya303 merged 3 commits intopython:mainfrom
ZeroIntensity:fix-stringio

Conversation

@ZeroIntensity
Copy link
Member

@ZeroIntensity ZeroIntensity commented Jun 11, 2025

I'm generally not a fan of adding locks around __next__, because concurrent iteration isn't generally a real use case, but readlines calls into __next__.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants